/*
 * Diego Zamboni Latance 			344990
 * Fellipe Augusto Ruiz de Souza 	344796
 * 
 */
package ast;

import java.util.ArrayList;

public class CompositeCommand extends Statement {

	public CompositeCommand(ArrayList<Statement> commands) {
		this.commands = commands;
	}

	@Override
	public void genC(PW pw) {
		// empty
	}

	@Override
	public void genKrakatoa(PW pw) {
		int i;
		for (i = 0; i < commands.size(); i++) {
			commands.get(i).genKrakatoa(pw);
		}
	}

	ArrayList<Statement> commands;

}
